# -*- coding:utf-8 -*-
from Apps.DataGeneration.DataGenerationClass.IdCardDataGeneration import IdCardDataGeneration
from Apps.DataGeneration.DataGenerationClass.addressDataGeneration import AddressDataGeneration
from Apps.DataGeneration.DataGenerationClass.archivesDataGeneration import ArchivesDataGeneration
from Apps.DataGeneration.DataGenerationClass.characterDataGeneration import CharacterDataGeneration
from Apps.DataGeneration.DataGenerationClass.phoneDataGeneration import PhoneDataGeneration
from Apps.DataGeneration.DataGenerationClass.textDataGeneration import TextDataGeneration

dataBase = ['aba', 'add_provider', 'address', 'administrative_unit', 'am_pm', 'android_platform_token',
            'ascii_company_email', 'ascii_email', 'ascii_free_email', 'ascii_safe_email', 'bank_country',
             'bban', 'binary', 'boolean', 'bothify', 'bs', 'building_number', 'cache_pattern',
            'catch_phrase', 'century', 'chrome', 'city', 'city_prefix', 'city_suffix', 'color', 'color_name', 'company',
            'company_email', 'company_suffix', 'coordinate', 'country', 'country_calling_code', 'country_code',
            'credit_card_expire', 'credit_card_full', 'credit_card_number', 'credit_card_provider',
            'credit_card_security_code', 'cryptocurrency', 'cryptocurrency_code', 'cryptocurrency_name', 'csv',
            'currency', 'currency_code', 'currency_name', 'currency_symbol', 'current_country', 'current_country_code',
            'date', 'date_between', 'date_between_dates', 'date_object', 'date_of_birth', 'date_this_century',
            'date_this_decade', 'date_this_month', 'date_this_year', 'date_time', 'date_time_ad', 'date_time_between',
            'date_time_between_dates', 'date_time_this_century', 'date_time_this_decade', 'date_time_this_month',
            'date_time_this_year', 'day_of_month', 'day_of_week', 'del_arguments', 'dga', 'domain_name', 'domain_word',
            'dsv', 'ean', 'ean13', 'ean8', 'ein', 'email', 'emoji', 'enum', 'factories', 'file_extension', 'file_name',
            'file_path', 'firefox', 'first_name', 'first_name_female', 'first_name_male', 'first_name_nonbinary',
            'fixed_width', 'format', 'free_email', 'free_email_domain', 'future_date', 'future_datetime',
            'generator_attrs', 'get_arguments', 'get_formatter', 'get_providers', 'hex_color', 'hexify', 'hostname',
            'http_method', 'iana_id', 'iban', 'image', 'image_url', 'internet_explorer', 'invalid_ssn',
            'ios_platform_token', 'ipv4', 'ipv4_network_class', 'ipv4_private', 'ipv4_public', 'ipv6', 'isbn10',
            'isbn13', 'iso8601', 'items', 'itin', 'job', 'json', 'json_bytes', 'language_code', 'language_name',
            'last_name', 'last_name_female', 'last_name_male', 'last_name_nonbinary', 'latitude', 'latlng', 'lexify',
            'license_plate', 'linux_platform_token', 'linux_processor', 'local_latlng', 'locale', 'locales',
            'localized_ean', 'localized_ean13', 'localized_ean8', 'location_on_land', 'longitude', 'mac_address',
            'mac_platform_token', 'mac_processor', 'md5', 'military_apo', 'military_dpo', 'military_ship',
            'military_state', 'mime_type', 'month', 'month_name',  'name', 'name_female', 'name_male',
            'name_nonbinary', 'nic_handle', 'nic_handles', 'null_boolean', 'numerify', 'opera', 'parse',
            'passport_dates', 'passport_dob', 'passport_full', 'passport_gender',
            'passport_number', 'passport_owner', 'password', 'past_date', 'past_datetime',
            'port_number', 'postalcode', 'postalcode_in_state', 'postalcode_plus4', 'postcode', 'postcode_in_state',
            'prefix', 'prefix_female', 'prefix_male', 'prefix_nonbinary', 'pricetag', 'profile', 'provider',
            'providers', 'psv', 'pybool', 'pydecimal', 'pydict', 'pyfloat', 'pyint', 'pyiterable', 'pylist', 'pyobject',
            'pyset', 'pystr', 'pystr_format', 'pystruct', 'pytimezone', 'pytuple', 'random', 'random_choices',
            'random_digit', 'random_digit_above_two', 'random_digit_not_null', 'random_digit_not_null_or_empty',
            'random_digit_or_empty', 'random_element', 'random_elements', 'random_int', 'random_letter',
            'random_letters', 'random_lowercase_letter', 'random_number', 'random_sample', 'random_uppercase_letter',
            'randomize_nb_elements', 'rgb_color', 'rgb_css_color', 'ripe_id', 'safari', 'safe_color_name',
            'safe_domain_name', 'safe_email', 'safe_hex_color', 'sbn9', 'secondary_address', 'seed', 'seed_instance',
            'seed_locale', 'sentence', 'sentences', 'set_arguments', 'set_formatter', 'sha1', 'sha256',
            'simple_profile', 'slug', 'ssn', 'state', 'state_abbr', 'street_address', 'street_name', 'street_suffix',
            'suffix', 'suffix_female', 'suffix_male', 'suffix_nonbinary', 'swift', 'swift11', 'swift8', 'tar',
            'time', 'time_delta', 'time_object', 'time_series', 'timezone', 'tld', 'tsv', 'unique',
            'unix_device', 'unix_partition', 'unix_time', 'upc_a', 'upc_e', 'uri', 'uri_extension', 'uri_page',
            'uri_path', 'url', 'user_agent', 'user_name', 'uuid4', 'weights', 'windows_platform_token',
            'xml', 'year', 'zip', 'zipcode', 'zipcode_in_state', 'zipcode_plus4']

"""
ar_EG - Arabic (Egypt)
ar_PS - Arabic (Palestine)
ar_SA - Arabic (Saudi Arabia)
bg_BG - Bulgarian
bs_BA - Bosnian
cs_CZ - Czech
de_DE - German
dk_DK - Danish
el_GR - Greek
en_AU - English (Australia)
en_CA - English (Canada)
en_GB - English (Great Britain)
en_NZ - English (New Zealand)
en_US - English (United States)
es_ES - Spanish (Spain)
es_MX - Spanish (Mexico)
et_EE - Estonian
fa_IR - Persian (Iran)
fi_FI - Finnish
fr_FR - French
hi_IN - Hindi 北印度语
hr_HR - Croatian
hu_HU - Hungarian
hy_AM - Armenian
it_IT - Italian
ja_JP - Japanese
ka_GE - Georgian (Georgia)
ko_KR - Korean
lt_LT - Lithuanian
lv_LV - Latvian
ne_NP - Nepali
nl_NL - Dutch (Netherlands)
no_NO - Norwegian
pl_PL - Polish
pt_BR - Portuguese (Brazil)
pt_PT - Portuguese (Portugal)
ro_RO - Romanian
ru_RU - Russian
sl_SI - Slovene
sv_SE - Swedish
tr_TR - Turkish
uk_UA - Ukrainian
zh_CN - Chinese (China Mainland)
zh_TW - Chinese (China Taiwan)


"""
a = 1
# a = 2
if a == 1:

    from faker import Faker

    fake = Faker()
    # print(fake.profile.__doc__)
    print(fake.xml())
else:
    from Apps.DataGeneration.DataGenerationClass.baseDataGeneration import BaseDataGeneration

    # generate = IdCardDataGeneration('en_US')
    generate = ArchivesDataGeneration('zh_CN')

    print(generate.get_simple_profile()["birthdate"].strftime("%Y=%m=%h=%H"))

